package com.example.demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

public class SixthActivity extends AppCompatActivity {
 private WebView myWebView_3;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sixth);
        myWebView_3 = findViewById(R.id.myWebView_3);
        String data = "<html> \n" +
                "<body>\n" +
                "<p>大家好，我叫邓桂文！你可以叫我vans哥</p>\n" +
                "<img src=\"zx.jpg\" width=400px height=500px/>\n" +
                "</body>\n" +
                "</html>";
        myWebView_3.loadDataWithBaseURL("file:///android_asset/test.html",
                data,
                "text/html",
                "utf-8",
                null);
        myWebView_3.getSettings().setLoadsImagesAutomatically(true);
    }
}
